Skip to main content

IEntityStoreAsync<T>

For providers that want a cleaner API with a little more perf

Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
public interface IEntityStoreAsync<T>

Methods

GetByIdAsync(Object, CancellationToken)

View Source
Declaration
Task<T> GetByIdAsync(object id, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task<<T>>

Parameters
TypeName
System.Objectid
System.Threading.CancellationTokentoken

GetByIdsAsync(IEnumerable, CancellationToken)

View Source
Declaration
Task<IList<T>> GetByIdsAsync(IEnumerable ids, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task<System.Collections.Generic.IList<<T>>>

Parameters
TypeName
System.Collections.IEnumerableids
System.Threading.CancellationTokentoken

GetAllAsync(CancellationToken)

View Source
Declaration
Task<IList<T>> GetAllAsync(CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task<System.Collections.Generic.IList<<T>>>

Parameters
TypeName
System.Threading.CancellationTokentoken

StoreAsync(T, CancellationToken)

View Source
Declaration
Task<T> StoreAsync(T entity, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task<<T>>

Parameters
TypeName
<T>entity
System.Threading.CancellationTokentoken

StoreAllAsync(IEnumerable<T>, CancellationToken)

View Source
Declaration
Task StoreAllAsync(IEnumerable<T> entities, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.Collections.Generic.IEnumerable<<T>>entities
System.Threading.CancellationTokentoken

DeleteAsync(T, CancellationToken)

View Source
Declaration
Task DeleteAsync(T entity, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task

Parameters
TypeName
<T>entity
System.Threading.CancellationTokentoken

DeleteByIdAsync(Object, CancellationToken)

View Source
Declaration
Task DeleteByIdAsync(object id, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.Objectid
System.Threading.CancellationTokentoken

DeleteByIdsAsync(IEnumerable, CancellationToken)

View Source
Declaration
Task DeleteByIdsAsync(IEnumerable ids, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.Collections.IEnumerableids
System.Threading.CancellationTokentoken

DeleteAllAsync(CancellationToken)

View Source
Declaration
Task DeleteAllAsync(CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.Threading.CancellationTokentoken